import axios from "axios";
// 创建axios实例
const request=axios.create({
    baseURL:"http://localhost:9040",
    timeout:5000
})
// 添加请求拦截
request.interceptors.request.use(function(config){
    //给headers添加Authorization（网关会校验相关操作是否带有Authorization）
    config.headers.Authorization = localStorage.getItem("token");
    return config;
})

export default request;